package com.zwj.apollo.controller;

import com.zwj.apollo.service.AccountService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 摸鱼二长老
 * @Date 2023/2/27 11:29 AM
 * @version 1.0
 */
@RestController
public class AccountController {
    @Resource
    private AccountService accountService;

    @Value("${sms.enable}")
    private Boolean smsEnable;

    @GetMapping("/hi")
    public String hi() {
        System.out.println(smsEnable);
        return "hello";
    }

    @GetMapping("/getSmsEnableInfo")
    public String getSmsEnableInfo() {
        return accountService.getSmsEnableInfo();
    }
}
